﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Adm/Site.Master" AutoEventWireup="true" CodeBehind="Estados.aspx.cs" Inherits="App.UI.Adm.Estados" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <span class="titulo">
        <%--Titulo da Página--%>
        <asp:Literal ID="Literal1" Text="Estados" runat="server" />
        <%--Link para página de cadastro--%>
        <a href="CadastroEstados.aspx" class="m-btn mini right go-left"><i class="icon-plus">
        </i>Nova Estado</a>
        <%--Home--%><a href="Default.aspx" class="m-btn mini right go-left"><i class="icon-home">
        </i>Home</a> </span>
    <div class="clear">
    </div>
    <hr />
    <div class="grid">
        <%--Grid View--%>
        <asp:GridView ID="grdView" AllowPaging="True" CssClass="table table-striped table-bordered table-condensed"
            AutoGenerateColumns="False" EmptyDataText="Nenhum registro encontrado" OnPageIndexChanging="grdView_PageIndexChanging"
            PageSize="15" runat="server">
            <Columns>
                <asp:BoundField DataField="Nome" ItemStyle-CssClass="usuarios" HeaderText="Estado" />
        
                <asp:TemplateField HeaderText="Ações" >
                    <ItemTemplate>
                       <asp:LinkButton ID="Editar" CssClass="btn-grid" ToolTip="Editar" CommandArgument='<%# Eval("Estado_ID") %>'
                                    OnCommand="btnEditar_Command" runat="server">
                                    <asp:Image ID="Image1" AlternateText="Editar" ToolTip="Editar" ImageUrl="/App_Themes/Site/Imagens/edit.png"
                                        runat="server" />
                                </asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
